<!DOCTYPE html>
<html lang="zh_CN">

<head>
    <meta charset="UTF-8">
    <title>Taking out system</title>
    <link rel="stylesheet" href="../public/css/bootstrap.min.css">
</head>

<body style="padding-top: 70px;">
    <header>
        <nav class="navbar navbar-inverse navbar-fixed-top">
            <div class="container">
                <!-- mobile display -->
                <div class="navbar-header">
                    <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#navbar_main" aria-expanded="false">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a href="#" class="navbar-brand">Logo！</a>
                </div>

                <!-- normal display -->
                <div class="collapse navbar-collapse" id="navbar_main">
                    <ul class="nav navbar-nav navbar-left">
                        <li class="active"><a href="#">Link <span class="sr-only">test</span></a></li>
                        <li><a href="#">Link 2</a></li>
                        <li><a href="#">Link 3</a></li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="false" aria-expanded="false">DropDown <span class="caret"></span></a>
                            <ul class="dropdown-menu">
                                <li><a href="#">Action1</a></li>
                                <li><a href="#">Action2</a></li>
                                <li class="divider" role="separator"></li>
                                <li><a href="#">Action3</a></li>
                            </ul>
                        </li>
                    </ul>
                    <ul class="nav navbar-nav navbar-right">
                        <li>
                            <a href="#">Sign in</a>
                        </li>
                        <li>
                            <button type="button" class="btn btn-primary navbar-btn btn-block">Sign up</button>
                        </li>
                    </ul>
                </div>
        </nav>
    </header>
    <div class="container">
        <div class="row">
            <div class="col-md-offset-3 col-sm-offset-2 col-lg-offset-4 col-md-6 col-sm-8 col-lg-4 col-xs-12">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <form action="." method="post">
                            <c:if test="${reg_type == 1}">
                                <div class="form-group">
                                    <label class="control-label" for="usr">Owner name</label>
                                    <div class="input-group">
                                        <span class="input-group-addon"><span class="glyphicon glyphicon-user"></span> </span>
                                        <input type="text" class="form-control" id="usr" name="usr" placeholder="The name of merchant's owner" autofocus>
                                    </div>
                                </div>
                            </c:if>
                            <c:if test="${reg_type == 0}">
                                <div class="form-group">
                                    <label class="control-label" for="usr">Nickname</label>
                                    <div class="input-group">
                                        <span class="input-group-addon"><span class="glyphicon glyphicon-user"></span> </span>
                                        <input type="text" class="form-control" id="usr" name="usr" placeholder="The name we call you" autofocus>
                                    </div>
                                </div>
                            </c:if>

                            <div class="form-group">
                                <label for="tel">Telephone</label>
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="glyphicon glyphicon-phone"></span> </span>
                                    <input type="text" class="form-control" id="tel" name="tel" placeholder="Your telephone number">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="pwd">Password</label>
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span> </span>
                                    <input type="password" class="form-control" id="pwd" name="pwd" placeholder="Sign in password">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="pwd2">Password Again</label>
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span> </span>
                                    <input type="password" class="form-control" id="pwd2" name="pwd2" placeholder="confirm the password">
                                </div>
                            </div>


                            <div class="form-group">
                                <label for="location">Location</label>
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="glyphicon glyphicon-home"></span> </span>
                                    <input type="text" class="form-control" id="location" name="location" placeholder="Location of your merchant">
                                </div>
                            </div>
                            <c:if test="${reg_type == 1}">
                                <div class="form-group">
                                    <label for="id_card">ID Card</label>
                                    <div class="input-group">
                                        <span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span> </span>
                                        <input type="text" class="form-control" id="id_card" name="id_card" placeholder="Your id card number">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="id_card_path">ID Card Pic</label>
                                    <input type="file" class="" id="id_card_path" name="id_card_path">
                                    <p class="help-block">The ID Card picture would help us to confirm your ID</p>
                                </div>

                                <div class="form-group">
                                    <label for="brand">Brand</label>
                                    <div class="input-group">
                                        <span class="input-group-addon"><span class="glyphicon glyphicon-info-sign"></span> </span>
                                        <input type="text" class="form-control" id="brand" name="brand" placeholder="Brand-name of your merchant">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="logo">Brand Pic</label>
                                    <input type="file" class="" id="logo" name="logo">
                                    <p class="help-block">The Brand picture could help customer recognize your merchant easily</p>
                                </div>
                            </c:if>

                            <hr>
                            <button class="btn btn-primary btn-block" type="submit">Sign Up</button>
                            <button class="btn btn-danger btn-block" type="submit">Cancel</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <footer>
        <script type="application/javascript" src="../public/js/jquery.min.js"></script>
        <script type="application/javascript" src="../public/js/bootstrap.min.js"></script>
    </footer>
</body>

</html>